import config from '~/config'


export const absUrl = (url) => {
    if (typeof (url) == 'undefined' || url == '') {
        return ''
    }
    if (url && url.startsWith('http')) {
        return url
    } else {
        return config.baseImgUrl + url
    }
}